<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">

	<title>Class ManaPHP\Http\Response</title>

	<link rel="stylesheet" href="resources/style.css?c2f33731c1948fbed7c333554678bfa68d4817da">

</head>

<body>
<div id="left">
	<div id="menu">
		<a href="index.html" title="Overview"><span>Overview</span></a>


		<div id="groups">
				<h3>Namespaces</h3>
			<ul>
				<li class="active">
					<a href="namespace-ManaPHP.html">
						ManaPHP<span></span>
					</a>

						<ul>
				<li>
					<a href="namespace-ManaPHP.Alias.html">
						Alias					</a>

						</li>
				<li>
					<a href="namespace-ManaPHP.Authentication.html">
						Authentication<span></span>
					</a>

						<ul>
				<li>
					<a href="namespace-ManaPHP.Authentication.Token.html">
						Token<span></span>
					</a>

						<ul>
				<li>
					<a href="namespace-ManaPHP.Authentication.Token.Adapter.html">
						Adapter<span></span>
					</a>

						<ul>
				<li>
					<a href="namespace-ManaPHP.Authentication.Token.Adapter.Mwt.html">
						Mwt					</a>

						</li>
							</ul></li></ul></li></ul></li>
				<li>
					<a href="namespace-ManaPHP.Authorization.html">
						Authorization<span></span>
					</a>

						<ul>
				<li>
					<a href="namespace-ManaPHP.Authorization.Rbac.html">
						Rbac<span></span>
					</a>

						<ul>
				<li>
					<a href="namespace-ManaPHP.Authorization.Rbac.Models.html">
						Models					</a>

						</li>
				<li>
					<a href="namespace-ManaPHP.Authorization.Rbac.PermissionBuilder.html">
						PermissionBuilder					</a>

						</li>
							</ul></li></ul></li>
				<li>
					<a href="namespace-ManaPHP.Cache.html">
						Cache<span></span>
					</a>

						<ul>
				<li>
					<a href="namespace-ManaPHP.Cache.Adapter.html">
						Adapter<span></span>
					</a>

						<ul>
				<li>
					<a href="namespace-ManaPHP.Cache.Adapter.Apc.html">
						Apc					</a>

						</li>
				<li>
					<a href="namespace-ManaPHP.Cache.Adapter.Db.html">
						Db					</a>

						</li>
				<li>
					<a href="namespace-ManaPHP.Cache.Adapter.File.html">
						File					</a>

						</li>
							</ul></li></ul></li>
				<li>
					<a href="namespace-ManaPHP.Cli.html">
						Cli<span></span>
					</a>

						<ul>
				<li>
					<a href="namespace-ManaPHP.Cli.Application.html">
						Application					</a>

						</li>
				<li>
					<a href="namespace-ManaPHP.Cli.Arguments.html">
						Arguments					</a>

						</li>
				<li>
					<a href="namespace-ManaPHP.Cli.Controllers.html">
						Controllers					</a>

						</li>
							</ul></li>
				<li>
					<a href="namespace-ManaPHP.Component.html">
						Component					</a>

						</li>
				<li>
					<a href="namespace-ManaPHP.Configure.html">
						Configure<span></span>
					</a>

						<ul>
				<li>
					<a href="namespace-ManaPHP.Configure.Engine.html">
						Engine<span></span>
					</a>

						<ul>
				<li>
					<a href="namespace-ManaPHP.Configure.Engine.Ini.html">
						Ini					</a>

						</li>
				<li>
					<a href="namespace-ManaPHP.Configure.Engine.Json.html">
						Json					</a>

						</li>
							</ul></li></ul></li>
				<li>
					<a href="namespace-ManaPHP.Counter.html">
						Counter<span></span>
					</a>

						<ul>
				<li>
					<a href="namespace-ManaPHP.Counter.Adapter.html">
						Adapter<span></span>
					</a>

						<ul>
				<li>
					<a href="namespace-ManaPHP.Counter.Adapter.Db.html">
						Db					</a>

						</li>
							</ul></li></ul></li>
				<li>
					<a href="namespace-ManaPHP.Db.html">
						Db<span></span>
					</a>

						<ul>
				<li>
					<a href="namespace-ManaPHP.Db.Adapter.html">
						Adapter<span></span>
					</a>

						<ul>
				<li>
					<a href="namespace-ManaPHP.Db.Adapter.Sqlite.html">
						Sqlite					</a>

						</li>
							</ul></li></ul></li>
				<li>
					<a href="namespace-ManaPHP.Debugger.html">
						Debugger					</a>

						</li>
				<li>
					<a href="namespace-ManaPHP.Di.html">
						Di					</a>

						</li>
				<li>
					<a href="namespace-ManaPHP.Event.html">
						Event<span></span>
					</a>

						<ul>
				<li>
					<a href="namespace-ManaPHP.Event.Manager.html">
						Manager					</a>

						</li>
							</ul></li>
				<li>
					<a href="namespace-ManaPHP.Facade.html">
						Facade					</a>

						</li>
				<li>
					<a href="namespace-ManaPHP.Filesystem.html">
						Filesystem<span></span>
					</a>

						<ul>
				<li>
					<a href="namespace-ManaPHP.Filesystem.Adapter.html">
						Adapter<span></span>
					</a>

						<ul>
				<li>
					<a href="namespace-ManaPHP.Filesystem.Adapter.File.html">
						File					</a>

						</li>
							</ul></li></ul></li>
				<li class="active">
					<a href="namespace-ManaPHP.Http.html">
						Http<span></span>
					</a>

						<ul>
				<li>
					<a href="namespace-ManaPHP.Http.Client.html">
						Client					</a>

						</li>
				<li>
					<a href="namespace-ManaPHP.Http.Cookies.html">
						Cookies					</a>

						</li>
				<li>
					<a href="namespace-ManaPHP.Http.Filter.html">
						Filter					</a>

						</li>
				<li>
					<a href="namespace-ManaPHP.Http.Request.html">
						Request<span></span>
					</a>

						<ul>
				<li>
					<a href="namespace-ManaPHP.Http.Request.File.html">
						File					</a>

						</li>
							</ul></li>
				<li>
					<a href="namespace-ManaPHP.Http.Response.html">
						Response					</a>

						</li>
				<li>
					<a href="namespace-ManaPHP.Http.Session.html">
						Session<span></span>
					</a>

						<ul>
				<li>
					<a href="namespace-ManaPHP.Http.Session.Adapter.html">
						Adapter<span></span>
					</a>

						<ul>
				<li>
					<a href="namespace-ManaPHP.Http.Session.Adapter.Db.html">
						Db					</a>

						</li>
							</ul></li></ul></li></ul></li>
				<li>
					<a href="namespace-ManaPHP.I18n.html">
						I18n					</a>

						</li>
				<li>
					<a href="namespace-ManaPHP.Image.html">
						Image<span></span>
					</a>

						<ul>
				<li>
					<a href="namespace-ManaPHP.Image.Adapter.html">
						Adapter<span></span>
					</a>

						<ul>
				<li>
					<a href="namespace-ManaPHP.Image.Adapter.Gd.html">
						Gd					</a>

						</li>
				<li>
					<a href="namespace-ManaPHP.Image.Adapter.Imagick.html">
						Imagick					</a>

						</li>
							</ul></li></ul></li>
				<li>
					<a href="namespace-ManaPHP.Loader.html">
						Loader					</a>

						</li>
				<li>
					<a href="namespace-ManaPHP.Logger.html">
						Logger<span></span>
					</a>

						<ul>
				<li>
					<a href="namespace-ManaPHP.Logger.Adapter.html">
						Adapter<span></span>
					</a>

						<ul>
				<li>
					<a href="namespace-ManaPHP.Logger.Adapter.Db.html">
						Db					</a>

						</li>
							</ul></li></ul></li>
				<li>
					<a href="namespace-ManaPHP.Message.html">
						Message<span></span>
					</a>

						<ul>
				<li>
					<a href="namespace-ManaPHP.Message.Queue.html">
						Queue<span></span>
					</a>

						<ul>
				<li>
					<a href="namespace-ManaPHP.Message.Queue.Adapter.html">
						Adapter<span></span>
					</a>

						<ul>
				<li>
					<a href="namespace-ManaPHP.Message.Queue.Adapter.Db.html">
						Db					</a>

						</li>
				<li>
					<a href="namespace-ManaPHP.Message.Queue.Adapter.Redis.html">
						Redis					</a>

						</li>
							</ul></li></ul></li></ul></li>
				<li>
					<a href="namespace-ManaPHP.Meter.html">
						Meter<span></span>
					</a>

						<ul>
				<li>
					<a href="namespace-ManaPHP.Meter.Linear.html">
						Linear					</a>

						</li>
				<li>
					<a href="namespace-ManaPHP.Meter.Round.html">
						Round					</a>

						</li>
							</ul></li>
				<li>
					<a href="namespace-ManaPHP.Mvc.html">
						Mvc<span></span>
					</a>

						<ul>
				<li>
					<a href="namespace-ManaPHP.Mvc.Application.html">
						Application					</a>

						</li>
				<li>
					<a href="namespace-ManaPHP.Mvc.Dispatcher.html">
						Dispatcher					</a>

						</li>
				<li>
					<a href="namespace-ManaPHP.Mvc.Model.html">
						Model<span></span>
					</a>

						<ul>
				<li>
					<a href="namespace-ManaPHP.Mvc.Model.Manager.html">
						Manager					</a>

						</li>
				<li>
					<a href="namespace-ManaPHP.Mvc.Model.Metadata.html">
						Metadata<span></span>
					</a>

						<ul>
				<li>
					<a href="namespace-ManaPHP.Mvc.Model.Metadata.Adapter.html">
						Adapter<span></span>
					</a>

						<ul>
				<li>
					<a href="namespace-ManaPHP.Mvc.Model.Metadata.Adapter.Apc.html">
						Apc					</a>

						</li>
							</ul></li></ul></li>
				<li>
					<a href="namespace-ManaPHP.Mvc.Model.QueryBuilder.html">
						QueryBuilder					</a>

						</li>
							</ul></li>
				<li>
					<a href="namespace-ManaPHP.Mvc.Router.html">
						Router<span></span>
					</a>

						<ul>
				<li>
					<a href="namespace-ManaPHP.Mvc.Router.RewriteChecker.html">
						RewriteChecker					</a>

						</li>
				<li>
					<a href="namespace-ManaPHP.Mvc.Router.Route.html">
						Route					</a>

						</li>
							</ul></li>
				<li>
					<a href="namespace-ManaPHP.Mvc.Url.html">
						Url					</a>

						</li>
				<li>
					<a href="namespace-ManaPHP.Mvc.User.html">
						User					</a>

						</li>
				<li>
					<a href="namespace-ManaPHP.Mvc.View.html">
						View<span></span>
					</a>

						<ul>
				<li>
					<a href="namespace-ManaPHP.Mvc.View.Flash.html">
						Flash<span></span>
					</a>

						<ul>
				<li>
					<a href="namespace-ManaPHP.Mvc.View.Flash.Adapter.html">
						Adapter					</a>

						</li>
							</ul></li></ul></li></ul></li>
				<li>
					<a href="namespace-ManaPHP.Paginator.html">
						Paginator					</a>

						</li>
				<li>
					<a href="namespace-ManaPHP.Renderer.html">
						Renderer<span></span>
					</a>

						<ul>
				<li>
					<a href="namespace-ManaPHP.Renderer.Engine.html">
						Engine<span></span>
					</a>

						<ul>
				<li>
					<a href="namespace-ManaPHP.Renderer.Engine.Php.html">
						Php					</a>

						</li>
				<li>
					<a href="namespace-ManaPHP.Renderer.Engine.Sword.html">
						Sword					</a>

						</li>
							</ul></li></ul></li>
				<li>
					<a href="namespace-ManaPHP.Security.html">
						Security<span></span>
					</a>

						<ul>
				<li>
					<a href="namespace-ManaPHP.Security.Captcha.html">
						Captcha					</a>

						</li>
				<li>
					<a href="namespace-ManaPHP.Security.Crypt.html">
						Crypt					</a>

						</li>
				<li>
					<a href="namespace-ManaPHP.Security.CsrfToken.html">
						CsrfToken					</a>

						</li>
				<li>
					<a href="namespace-ManaPHP.Security.RateLimiter.html">
						RateLimiter<span></span>
					</a>

						<ul>
				<li>
					<a href="namespace-ManaPHP.Security.RateLimiter.Adapter.html">
						Adapter<span></span>
					</a>

						<ul>
				<li>
					<a href="namespace-ManaPHP.Security.RateLimiter.Adapter.Db.html">
						Db					</a>

						</li>
							</ul></li></ul></li></ul></li>
				<li>
					<a href="namespace-ManaPHP.Serializer.html">
						Serializer<span></span>
					</a>

						<ul>
				<li>
					<a href="namespace-ManaPHP.Serializer.Adapter.html">
						Adapter<span></span>
					</a>

						<ul>
				<li>
					<a href="namespace-ManaPHP.Serializer.Adapter.Json.html">
						Json					</a>

						</li>
				<li>
					<a href="namespace-ManaPHP.Serializer.Adapter.JsonPhp.html">
						JsonPhp					</a>

						</li>
				<li>
					<a href="namespace-ManaPHP.Serializer.Adapter.Php.html">
						Php					</a>

						</li>
				<li>
					<a href="namespace-ManaPHP.Serializer.Adapter.StringType.html">
						StringType					</a>

						</li>
							</ul></li></ul></li>
				<li>
					<a href="namespace-ManaPHP.Store.html">
						Store<span></span>
					</a>

						<ul>
				<li>
					<a href="namespace-ManaPHP.Store.Adapter.html">
						Adapter<span></span>
					</a>

						<ul>
				<li>
					<a href="namespace-ManaPHP.Store.Adapter.Db.html">
						Db					</a>

						</li>
				<li>
					<a href="namespace-ManaPHP.Store.Adapter.File.html">
						File					</a>

						</li>
							</ul></li></ul></li>
				<li>
					<a href="namespace-ManaPHP.Task.html">
						Task<span></span>
					</a>

						<ul>
				<li>
					<a href="namespace-ManaPHP.Task.Metadata.html">
						Metadata<span></span>
					</a>

						<ul>
				<li>
					<a href="namespace-ManaPHP.Task.Metadata.Adapter.html">
						Adapter<span></span>
					</a>

						<ul>
				<li>
					<a href="namespace-ManaPHP.Task.Metadata.Adapter.Apc.html">
						Apc					</a>

						</li>
				<li>
					<a href="namespace-ManaPHP.Task.Metadata.Adapter.Db.html">
						Db					</a>

						</li>
				<li>
					<a href="namespace-ManaPHP.Task.Metadata.Adapter.Redis.html">
						Redis					</a>

						</li>
							</ul></li></ul></li></ul></li>
				<li>
					<a href="namespace-ManaPHP.Text.html">
						Text					</a>

						</li>
				<li>
					<a href="namespace-ManaPHP.Utility.html">
						Utility					</a>

						</li>
							</ul></li>
			</ul>
		</div>

		<hr>


		<div id="elements">
			<h3>Classes</h3>
			<ul>
				<li><a href="class-ManaPHP.Http.Client.html">Client</a></li>
				<li><a href="class-ManaPHP.Http.Cookies.html">Cookies</a></li>
				<li><a href="class-ManaPHP.Http.Filter.html">Filter</a></li>
				<li><a href="class-ManaPHP.Http.Request.html">Request</a></li>
				<li class="active"><a href="class-ManaPHP.Http.Response.html">Response</a></li>
				<li><a href="class-ManaPHP.Http.Session.html">Session</a></li>
			</ul>

			<h3>Interfaces</h3>
			<ul>
				<li><a href="class-ManaPHP.Http.ClientInterface.html">ClientInterface</a></li>
				<li><a href="class-ManaPHP.Http.CookiesInterface.html">CookiesInterface</a></li>
				<li><a href="class-ManaPHP.Http.FilterInterface.html">FilterInterface</a></li>
				<li><a href="class-ManaPHP.Http.RequestInterface.html">RequestInterface</a></li>
				<li><a href="class-ManaPHP.Http.ResponseInterface.html">ResponseInterface</a></li>
				<li><a href="class-ManaPHP.Http.SessionInterface.html">SessionInterface</a></li>
			</ul>


			<h3>Exceptions</h3>
			<ul>
				<li><a href="class-ManaPHP.Http.Exception.html">Exception</a></li>
			</ul>


		</div>
	</div>
</div>

<div id="splitter"></div>

<div id="right">
<div id="rightInner">
	<form id="search">
		<input type="hidden" name="cx" value="">
		<input type="hidden" name="ie" value="UTF-8">
		<input type="text" name="q" class="text" placeholder="Search">
	</form>

	<div id="navigation">
		<ul>
			<li>
				<a href="index.html" title="Overview"><span>Overview</span></a>
			</li>
			<li>
				<a href="namespace-ManaPHP.Http.html" title="Summary of ManaPHP\Http"><span>Namespace</span></a>
			</li>
			<li class="active">
<span>Class</span>			</li>
		</ul>
		<ul>
		</ul>
		<ul>
		</ul>
	</div>

<div id="content" class="class">
	<h1>Class Response</h1>


	<div class="description">
	<p>Class ManaPHP\Http\Response</p>
	</div>

	<dl class="tree">
		<dd style="padding-left:0px">
			<a href="class-ManaPHP.Component.html"><span>ManaPHP\Component</span></a>
			
			 implements 
				<a href="class-ManaPHP.ComponentInterface.html"><span>ManaPHP\ComponentInterface</span></a>
			
			
		</dd>
		<dd style="padding-left:30px">
			<img src="resources/inherit.png" alt="Extended by">
<b><span>ManaPHP\Http\Response</span></b>			
			 implements 
				<a href="class-ManaPHP.Http.ResponseInterface.html"><span>ManaPHP\Http\ResponseInterface</span></a>
			
			
		</dd>
	</dl>








	<div class="info">
		
		
		<b>Namespace:</b> <a href="namespace-ManaPHP.html">ManaPHP</a>\<a href="namespace-ManaPHP.Http.html">Http</a><br>
		<b>Package:</b> response<br>

			<b>Located at</b> <a href="source-class-ManaPHP.Http.Response.html#9-442" title="Go to source code">Http/Response.php</a>
		<br>
	</div>



	<table class="summary methods" id="methods">
	<caption>Methods summary</caption>
	<tr data-order="setStatusCode" id="_setStatusCode">

		<td class="attributes"><code>
			 public 

			static
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_setStatusCode">#</a>
		<code><a href="source-class-ManaPHP.Http.Response.html#39-55" title="Go to source code">setStatusCode</a>( <span>integer <var>$code</var></span>, <span>string <var>$message</var></span> )</code>

		<div class="description short">
			<p>Sets the HTTP response code</p>

<pre><span class="php-var">$response</span>-&gt;setStatusCode(<span class="php-num">404</span>, <span class="php-quote">&quot;Not Found&quot;</span>);</pre>
		</div>

		<div class="description detailed hidden">
			<p>Sets the HTTP response code</p>

<pre><span class="php-var">$response</span>-&gt;setStatusCode(<span class="php-num">404</span>, <span class="php-quote">&quot;Not Found&quot;</span>);</pre>


				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$code</var></dt>
					<dd></dd>
					<dt><var>$message</var></dt>
					<dd></dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					static
				</div>




				<h4>Implementation of</h4>
				<div class="list"><code><a href="class-ManaPHP.Http.ResponseInterface.html#_setStatusCode">ManaPHP\Http\ResponseInterface::setStatusCode()</a></code></div>
		</div>
		</div></td>
	</tr>
	<tr data-order="setHeader" id="_setHeader">

		<td class="attributes"><code>
			 public 

			static
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_setHeader">#</a>
		<code><a href="source-class-ManaPHP.Http.Response.html#57-73" title="Go to source code">setHeader</a>( <span>string <var>$name</var></span>, <span>string <var>$value</var></span> )</code>

		<div class="description short">
			<p>Overwrites a header in the response</p>

<pre><span class="php-var">$response</span>-&gt;setHeader(<span class="php-quote">&quot;Content-Type&quot;</span>, <span class="php-quote">&quot;text/plain&quot;</span>);</pre>
		</div>

		<div class="description detailed hidden">
			<p>Overwrites a header in the response</p>

<pre><span class="php-var">$response</span>-&gt;setHeader(<span class="php-quote">&quot;Content-Type&quot;</span>, <span class="php-quote">&quot;text/plain&quot;</span>);</pre>


				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$name</var></dt>
					<dd></dd>
					<dt><var>$value</var></dt>
					<dd></dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					static
				</div>




				<h4>Implementation of</h4>
				<div class="list"><code><a href="class-ManaPHP.Http.ResponseInterface.html#_setHeader">ManaPHP\Http\ResponseInterface::setHeader()</a></code></div>
		</div>
		</div></td>
	</tr>
	<tr data-order="setRawHeader" id="_setRawHeader">

		<td class="attributes"><code>
			 public 

			static
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_setRawHeader">#</a>
		<code><a href="source-class-ManaPHP.Http.Response.html#75-90" title="Go to source code">setRawHeader</a>( <span>string <var>$header</var></span> )</code>

		<div class="description short">
			<p>Send a raw header to the response</p>

<pre><span class="php-var">$response</span>-&gt;setRawHeader(<span class="php-quote">&quot;HTTP/1.1 404 Not Found&quot;</span>);</pre>
		</div>

		<div class="description detailed hidden">
			<p>Send a raw header to the response</p>

<pre><span class="php-var">$response</span>-&gt;setRawHeader(<span class="php-quote">&quot;HTTP/1.1 404 Not Found&quot;</span>);</pre>


				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$header</var></dt>
					<dd></dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					static
				</div>




				<h4>Implementation of</h4>
				<div class="list"><code><a href="class-ManaPHP.Http.ResponseInterface.html#_setRawHeader">ManaPHP\Http\ResponseInterface::setRawHeader()</a></code></div>
		</div>
		</div></td>
	</tr>
	<tr data-order="setExpires" id="_setExpires">

		<td class="attributes"><code>
			 public 

			static
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_setExpires">#</a>
		<code><a href="source-class-ManaPHP.Http.Response.html#92-111" title="Go to source code">setExpires</a>( <span>integer <var>$timestamp</var></span> )</code>

		<div class="description short">
			<p>Sets a Expires header to use HTTP cache</p>

<pre><span class="php-var">$this</span>-&gt;response-&gt;setExpires(<span class="php-keyword1">new</span> DateTime());</pre>
		</div>

		<div class="description detailed hidden">
			<p>Sets a Expires header to use HTTP cache</p>

<pre><span class="php-var">$this</span>-&gt;response-&gt;setExpires(<span class="php-keyword1">new</span> DateTime());</pre>


				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$timestamp</var></dt>
					<dd></dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					static
				</div>




				<h4>Implementation of</h4>
				<div class="list"><code><a href="class-ManaPHP.Http.ResponseInterface.html#_setExpires">ManaPHP\Http\ResponseInterface::setExpires()</a></code></div>
		</div>
		</div></td>
	</tr>
	<tr data-order="setNotModified" id="_setNotModified">

		<td class="attributes"><code>
			 public 

			static
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_setNotModified">#</a>
		<code><a href="source-class-ManaPHP.Http.Response.html#113-123" title="Go to source code">setNotModified</a>( )</code>

		<div class="description short">
			<p>Sets a Not-Modified response</p>
		</div>

		<div class="description detailed hidden">
			<p>Sets a Not-Modified response</p>



				<h4>Returns</h4>
				<div class="list">
					static
				</div>




				<h4>Implementation of</h4>
				<div class="list"><code><a href="class-ManaPHP.Http.ResponseInterface.html#_setNotModified">ManaPHP\Http\ResponseInterface::setNotModified()</a></code></div>
		</div>
		</div></td>
	</tr>
	<tr data-order="setContentType" id="_setContentType">

		<td class="attributes"><code>
			 public 

			static
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_setContentType">#</a>
		<code><a href="source-class-ManaPHP.Http.Response.html#125-146" title="Go to source code">setContentType</a>( <span>string <var>$contentType</var></span>, <span>string <var>$charset</var> = <span class="php-keyword1">null</span></span> )</code>

		<div class="description short">
			<p>Sets the response content-type mime, optionally the charset</p>

<pre><span class="php-var">$response</span>-&gt;setContentType(<span class="php-quote">'application/pdf'</span>);
   <span class="php-var">$response</span>-&gt;setContentType(<span class="php-quote">'text/plain'</span>, <span class="php-quote">'UTF-8'</span>);</pre>
		</div>

		<div class="description detailed hidden">
			<p>Sets the response content-type mime, optionally the charset</p>

<pre><span class="php-var">$response</span>-&gt;setContentType(<span class="php-quote">'application/pdf'</span>);
   <span class="php-var">$response</span>-&gt;setContentType(<span class="php-quote">'text/plain'</span>, <span class="php-quote">'UTF-8'</span>);</pre>


				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$contentType</var></dt>
					<dd></dd>
					<dt><var>$charset</var></dt>
					<dd></dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					static
				</div>




				<h4>Implementation of</h4>
				<div class="list"><code><a href="class-ManaPHP.Http.ResponseInterface.html#_setContentType">ManaPHP\Http\ResponseInterface::setContentType()</a></code></div>
		</div>
		</div></td>
	</tr>
	<tr data-order="setEtag" id="_setEtag">

		<td class="attributes"><code>
			 public 

			static
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_setEtag">#</a>
		<code><a href="source-class-ManaPHP.Http.Response.html#148-163" title="Go to source code">setEtag</a>( <span>string <var>$etag</var></span> )</code>

		<div class="description short">
			<p>Set a custom ETag</p>

<pre><span class="php-var">$response</span>-&gt;setEtag(<span class="php-keyword2">md5</span>(<span class="php-keyword2">time</span>()));</pre>
		</div>

		<div class="description detailed hidden">
			<p>Set a custom ETag</p>

<pre><span class="php-var">$response</span>-&gt;setEtag(<span class="php-keyword2">md5</span>(<span class="php-keyword2">time</span>()));</pre>


				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$etag</var></dt>
					<dd></dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					static
				</div>




		</div>
		</div></td>
	</tr>
	<tr data-order="redirect" id="_redirect">

		<td class="attributes"><code>
			 public 

			static
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_redirect">#</a>
		<code><a href="source-class-ManaPHP.Http.Response.html#165-195" title="Go to source code">redirect</a>( <span>string|array <var>$location</var></span>, <span>boolean <var>$temporarily</var> = <span class="php-keyword1">true</span></span> )</code>

		<div class="description short">
			<p>Redirect by HTTP to another action or URL</p>

<pre><span class="php-comment">//Using a string redirect (internal/external)</span>
   <span class="php-var">$response</span>-&gt;redirect(<span class="php-quote">&quot;posts/index&quot;</span>);
   <span class="php-var">$response</span>-&gt;redirect(<span class="php-quote">&quot;http://www.google.com&quot;</span>);
   <span class="php-var">$response</span>-&gt;redirect(<span class="php-quote">&quot;http://www.example.com/new-location&quot;</span>, <span class="php-keyword1">false</span>);</pre>
		</div>

		<div class="description detailed hidden">
			<p>Redirect by HTTP to another action or URL</p>

<pre><span class="php-comment">//Using a string redirect (internal/external)</span>
   <span class="php-var">$response</span>-&gt;redirect(<span class="php-quote">&quot;posts/index&quot;</span>);
   <span class="php-var">$response</span>-&gt;redirect(<span class="php-quote">&quot;http://www.google.com&quot;</span>);
   <span class="php-var">$response</span>-&gt;redirect(<span class="php-quote">&quot;http://www.example.com/new-location&quot;</span>, <span class="php-keyword1">false</span>);</pre>


				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$location</var></dt>
					<dd></dd>
					<dt><var>$temporarily</var></dt>
					<dd></dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					static
				</div>




				<h4>Implementation of</h4>
				<div class="list"><code><a href="class-ManaPHP.Http.ResponseInterface.html#_redirect">ManaPHP\Http\ResponseInterface::redirect()</a></code></div>
		</div>
		</div></td>
	</tr>
	<tr data-order="setContent" id="_setContent">

		<td class="attributes"><code>
			 public 

			static
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_setContent">#</a>
		<code><a href="source-class-ManaPHP.Http.Response.html#197-212" title="Go to source code">setContent</a>( <span>string <var>$content</var></span> )</code>

		<div class="description short">
			<p>Sets HTTP response body</p>

<pre><span class="php-var">$response</span>-&gt;setContent(<span class="php-quote">&quot;&lt;h1&gt;Hello!&lt;/h1&gt;&quot;</span>);</pre>
		</div>

		<div class="description detailed hidden">
			<p>Sets HTTP response body</p>

<pre><span class="php-var">$response</span>-&gt;setContent(<span class="php-quote">&quot;&lt;h1&gt;Hello!&lt;/h1&gt;&quot;</span>);</pre>


				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$content</var></dt>
					<dd></dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					static
				</div>




				<h4>Implementation of</h4>
				<div class="list"><code><a href="class-ManaPHP.Http.ResponseInterface.html#_setContent">ManaPHP\Http\ResponseInterface::setContent()</a></code></div>
		</div>
		</div></td>
	</tr>
	<tr data-order="setJsonContent" id="_setJsonContent">

		<td class="attributes"><code>
			 public 

			static
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_setJsonContent">#</a>
		<code><a href="source-class-ManaPHP.Http.Response.html#214-237" title="Go to source code">setJsonContent</a>( <span>array <var>$content</var></span>, <span>integer <var>$jsonOptions</var> = <span class="php-keyword1">null</span></span> )</code>

		<div class="description short">
			<p>Sets HTTP response body. The parameter is automatically converted to JSON</p>

<pre><span class="php-var">$response</span>-&gt;setJsonContent(<span class="php-keyword1">array</span>(<span class="php-quote">&quot;status&quot;</span> =&gt; <span class="php-quote">&quot;OK&quot;</span>));
   <span class="php-var">$response</span>-&gt;setJsonContent(<span class="php-keyword1">array</span>(<span class="php-quote">&quot;status&quot;</span> =&gt; <span class="php-quote">&quot;OK&quot;</span>), JSON_NUMERIC_CHECK);</pre>
		</div>

		<div class="description detailed hidden">
			<p>Sets HTTP response body. The parameter is automatically converted to JSON</p>

<pre><span class="php-var">$response</span>-&gt;setJsonContent(<span class="php-keyword1">array</span>(<span class="php-quote">&quot;status&quot;</span> =&gt; <span class="php-quote">&quot;OK&quot;</span>));
   <span class="php-var">$response</span>-&gt;setJsonContent(<span class="php-keyword1">array</span>(<span class="php-quote">&quot;status&quot;</span> =&gt; <span class="php-quote">&quot;OK&quot;</span>), JSON_NUMERIC_CHECK);</pre>


				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$content</var></dt>
					<dd></dd>
					<dt><var>$jsonOptions</var></dt>
					<dd>consisting on http://www.php.net/manual/en/json.constants.php</dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					static
				</div>




				<h4>Implementation of</h4>
				<div class="list"><code><a href="class-ManaPHP.Http.ResponseInterface.html#_setJsonContent">ManaPHP\Http\ResponseInterface::setJsonContent()</a></code></div>
		</div>
		</div></td>
	</tr>
	<tr data-order="appendContent" id="_appendContent">

		<td class="attributes"><code>
			 public 

			static
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_appendContent">#</a>
		<code><a href="source-class-ManaPHP.Http.Response.html#239-251" title="Go to source code">appendContent</a>( <span>string <var>$content</var></span> )</code>

		<div class="description short">
			<p>Appends a string to the HTTP response body</p>
		</div>

		<div class="description detailed hidden">
			<p>Appends a string to the HTTP response body</p>


				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$content</var></dt>
					<dd></dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					static
				</div>




				<h4>Implementation of</h4>
				<div class="list"><code><a href="class-ManaPHP.Http.ResponseInterface.html#_appendContent">ManaPHP\Http\ResponseInterface::appendContent()</a></code></div>
		</div>
		</div></td>
	</tr>
	<tr data-order="getContent" id="_getContent">

		<td class="attributes"><code>
			 public 

			string
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_getContent">#</a>
		<code><a href="source-class-ManaPHP.Http.Response.html#253-261" title="Go to source code">getContent</a>( )</code>

		<div class="description short">
			<p>Gets the HTTP response body</p>
		</div>

		<div class="description detailed hidden">
			<p>Gets the HTTP response body</p>



				<h4>Returns</h4>
				<div class="list">
					string
				</div>




				<h4>Implementation of</h4>
				<div class="list"><code><a href="class-ManaPHP.Http.ResponseInterface.html#_getContent">ManaPHP\Http\ResponseInterface::getContent()</a></code></div>
		</div>
		</div></td>
	</tr>
	<tr data-order="isSent" id="_isSent">

		<td class="attributes"><code>
			 public 

			boolean
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_isSent">#</a>
		<code><a href="source-class-ManaPHP.Http.Response.html#263-271" title="Go to source code">isSent</a>( )</code>

		<div class="description short">
			<p>Check if the response is already sent</p>
		</div>

		<div class="description detailed hidden">
			<p>Check if the response is already sent</p>



				<h4>Returns</h4>
				<div class="list">
					boolean
				</div>




		</div>
		</div></td>
	</tr>
	<tr data-order="sendHeaders" id="_sendHeaders">

		<td class="attributes"><code>
			 public 

			static
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_sendHeaders">#</a>
		<code><a href="source-class-ManaPHP.Http.Response.html#273-295" title="Go to source code">sendHeaders</a>( )</code>

		<div class="description short">
			<p>Sends headers to the client</p>
		</div>

		<div class="description detailed hidden">
			<p>Sends headers to the client</p>



				<h4>Returns</h4>
				<div class="list">
					static
				</div>




				<h4>Implementation of</h4>
				<div class="list"><code><a href="class-ManaPHP.Http.ResponseInterface.html#_sendHeaders">ManaPHP\Http\ResponseInterface::sendHeaders()</a></code></div>
		</div>
		</div></td>
	</tr>
	<tr data-order="send" id="_send">

		<td class="attributes"><code>
			 public 

			static
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_send">#</a>
		<code><a href="source-class-ManaPHP.Http.Response.html#297-331" title="Go to source code">send</a>( )</code>

		<div class="description short">
			<p>Prints out HTTP response to the client</p>
		</div>

		<div class="description detailed hidden">
			<p>Prints out HTTP response to the client</p>



				<h4>Returns</h4>
				<div class="list">
					static
				</div>

				<h4>Throws</h4>
				<div class="list">
					<code><a href="class-ManaPHP.Http.Response.Exception.html">ManaPHP\Http\Response\Exception</a></code>
				</div>



				<h4>Implementation of</h4>
				<div class="list"><code><a href="class-ManaPHP.Http.ResponseInterface.html#_send">ManaPHP\Http\ResponseInterface::send()</a></code></div>
		</div>
		</div></td>
	</tr>
	<tr data-order="setFileToSend" id="_setFileToSend">

		<td class="attributes"><code>
			 public 

			static
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_setFileToSend">#</a>
		<code><a href="source-class-ManaPHP.Http.Response.html#333-353" title="Go to source code">setFileToSend</a>( <span>string <var>$file</var></span>, <span>string <var>$attachmentName</var> = <span class="php-keyword1">null</span></span> )</code>

		<div class="description short">
			<p>Sets an attached file to be sent at the end of the request</p>
		</div>

		<div class="description detailed hidden">
			<p>Sets an attached file to be sent at the end of the request</p>


				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$file</var></dt>
					<dd></dd>
					<dt><var>$attachmentName</var></dt>
					<dd></dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					static
				</div>

				<h4>Throws</h4>
				<div class="list">
					<code><a href="class-ManaPHP.Http.Response.Exception.html">ManaPHP\Http\Response\Exception</a></code>
				</div>



				<h4>Implementation of</h4>
				<div class="list"><code><a href="class-ManaPHP.Http.ResponseInterface.html#_setFileToSend">ManaPHP\Http\ResponseInterface::setFileToSend()</a></code></div>
		</div>
		</div></td>
	</tr>
	<tr data-order="setAttachment" id="_setAttachment">

		<td class="attributes"><code>
			 public 

			static
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_setAttachment">#</a>
		<code><a href="source-class-ManaPHP.Http.Response.html#355-376" title="Go to source code">setAttachment</a>( <span>string <var>$attachmentName</var></span> )</code>

		<div class="description short">
			
		</div>

		<div class="description detailed hidden">
			


				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$attachmentName</var></dt>
					<dd></dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					static
				</div>




				<h4>Implementation of</h4>
				<div class="list"><code><a href="class-ManaPHP.Http.ResponseInterface.html#_setAttachment">ManaPHP\Http\ResponseInterface::setAttachment()</a></code></div>
		</div>
		</div></td>
	</tr>
	<tr data-order="setCsvContent" id="_setCsvContent">

		<td class="attributes"><code>
			 public 

			static
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_setCsvContent">#</a>
		<code><a href="source-class-ManaPHP.Http.Response.html#378-433" title="Go to source code">setCsvContent</a>( <span>array <var>$rows</var></span>, <span>string <var>$attachmentName</var></span>, <span>array|string <var>$columns</var> = <span class="php-keyword1">null</span></span> )</code>

		<div class="description short">
			
		</div>

		<div class="description detailed hidden">
			


				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$rows</var></dt>
					<dd></dd>
					<dt><var>$attachmentName</var></dt>
					<dd></dd>
					<dt><var>$columns</var></dt>
					<dd></dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					static
				</div>




				<h4>Implementation of</h4>
				<div class="list"><code><a href="class-ManaPHP.Http.ResponseInterface.html#_setCsvContent">ManaPHP\Http\ResponseInterface::setCsvContent()</a></code></div>
		</div>
		</div></td>
	</tr>
	<tr data-order="getHeaders" id="_getHeaders">

		<td class="attributes"><code>
			 public 

			array
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_getHeaders">#</a>
		<code><a href="source-class-ManaPHP.Http.Response.html#435-441" title="Go to source code">getHeaders</a>( )</code>

		<div class="description short">
			
		</div>

		<div class="description detailed hidden">
			



				<h4>Returns</h4>
				<div class="list">
					array
				</div>




		</div>
		</div></td>
	</tr>
	</table>

	<table class="summary inherited">
	<caption>Methods inherited from <a href="class-ManaPHP.Component.html#methods">ManaPHP\Component</a></caption>
	<tr>
		<td><code>
			<a href="class-ManaPHP.Component.html#___debugInfo">__debugInfo()</a>, 
			<a href="class-ManaPHP.Component.html#___get">__get()</a>, 
			<a href="class-ManaPHP.Component.html#___isset">__isset()</a>, 
			<a href="class-ManaPHP.Component.html#___set">__set()</a>, 
			<a href="class-ManaPHP.Component.html#_attachEvent">attachEvent()</a>, 
			<a href="class-ManaPHP.Component.html#_dump">dump()</a>, 
			<a href="class-ManaPHP.Component.html#_fireEvent">fireEvent()</a>, 
			<a href="class-ManaPHP.Component.html#_getDependencyInjector">getDependencyInjector()</a>, 
			<a href="class-ManaPHP.Component.html#_setDependencyInjector">setDependencyInjector()</a>
		</code></td>
	</tr>
	</table>











	<table class="summary properties" id="properties">
	<caption>Properties summary</caption>
	<tr data-order="_sent" id="$_sent">
		<td class="attributes"><code>
			protected  
			boolean
		</code></td>

		<td class="name">
				<a href="source-class-ManaPHP.Http.Response.html#19-22" title="Go to source code"><var>$_sent</var></a>

			<div class="description short">
				
			</div>

			<div class="description detailed hidden">
				

			</div>
		</td>
		<td class="value">
			<div>
				<a href="#$_sent" class="anchor">#</a>
				<code><span class="php-keyword1">false</span></code>
			</div>
		</td>
	</tr>
	<tr data-order="_content" id="$_content">
		<td class="attributes"><code>
			protected  
			string
		</code></td>

		<td class="name">
				<a href="source-class-ManaPHP.Http.Response.html#24-27" title="Go to source code"><var>$_content</var></a>

			<div class="description short">
				
			</div>

			<div class="description detailed hidden">
				

			</div>
		</td>
		<td class="value">
			<div>
				<a href="#$_content" class="anchor">#</a>
				<code></code>
			</div>
		</td>
	</tr>
	<tr data-order="_headers" id="$_headers">
		<td class="attributes"><code>
			protected  
			array
		</code></td>

		<td class="name">
				<a href="source-class-ManaPHP.Http.Response.html#29-32" title="Go to source code"><var>$_headers</var></a>

			<div class="description short">
				
			</div>

			<div class="description detailed hidden">
				

			</div>
		</td>
		<td class="value">
			<div>
				<a href="#$_headers" class="anchor">#</a>
				<code>[]</code>
			</div>
		</td>
	</tr>
	<tr data-order="_file" id="$_file">
		<td class="attributes"><code>
			protected  
			string
		</code></td>

		<td class="name">
				<a href="source-class-ManaPHP.Http.Response.html#34-37" title="Go to source code"><var>$_file</var></a>

			<div class="description short">
				
			</div>

			<div class="description detailed hidden">
				

			</div>
		</td>
		<td class="value">
			<div>
				<a href="#$_file" class="anchor">#</a>
				<code></code>
			</div>
		</td>
	</tr>
	</table>

	<table class="summary inherited">
	<caption>Properties inherited from <a href="class-ManaPHP.Component.html#properties">ManaPHP\Component</a></caption>
	<tr>
		<td><code>
			<a href="class-ManaPHP.Component.html#$_dependencyInjector"><var>$_dependencyInjector</var></a>
		</code></td>
	</tr>
	</table>


	<table class="summary properties" id="magicProperties">
	<caption>Magic properties summary</caption>
	<tr data-order="cookies" id="m$cookies">
		<td class="attributes"><code>
			public  
			<code><a href="class-ManaPHP.Http.CookiesInterface.html">ManaPHP\Http\CookiesInterface</a></code>
		</code></td>

		<td class="name">
				<a href="source-class-ManaPHP.Http.Response.html#14" title="Go to source code"><var>$cookies</var></a>

			<div class="description short">
				
			</div>

			<div class="description detailed hidden">
				

			</div>
		</td>
	</tr>
	<tr data-order="url" id="m$url">
		<td class="attributes"><code>
			public  
			<code><a href="class-ManaPHP.Mvc.UrlInterface.html">ManaPHP\Mvc\UrlInterface</a></code>
		</code></td>

		<td class="name">
				<a href="source-class-ManaPHP.Http.Response.html#15" title="Go to source code"><var>$url</var></a>

			<div class="description short">
				
			</div>

			<div class="description detailed hidden">
				

			</div>
		</td>
	</tr>
	</table>

	<table class="summary inherited">
	<caption>Magic properties inherited from <a href="class-ManaPHP.Component.html#properties">ManaPHP\Component</a></caption>
	<tr>
		<td><code>
			<a href="class-ManaPHP.Component.html#m$alias"><var>$alias</var></a>, 
			<a href="class-ManaPHP.Component.html#m$configure"><var>$configure</var></a>, 
			<a href="class-ManaPHP.Component.html#m$eventsManager"><var>$eventsManager</var></a>, 
			<a href="class-ManaPHP.Component.html#m$filesystem"><var>$filesystem</var></a>, 
			<a href="class-ManaPHP.Component.html#m$logger"><var>$logger</var></a>
		</code></td>
	</tr>
	</table>


</div>

	<div id="footer">
		 API documentation generated by <a href="http://apigen.org">ApiGen</a>
	</div>
</div>
</div>
<script src="resources/combined.js"></script>
<script src="elementlist.js"></script>
</body>
</html>
